module.exports = function (sequelize, DataTypes) {
    return sequelize.define('adminuser', {
        id: {
            type: DataTypes.INTEGER,
            primaryKey: true,
            allowNull: true,
            autoIncrement: true
        },
        name: {
            type: DataTypes.STRING
        },
        birth: {
            type: DataTypes.STRING
        },
        crtm: {
            type: DataTypes.STRING
        },
        email: {
            type: DataTypes.STRING
        },
        mdtm: {
            type: DataTypes.STRING
        },
        sex: {
            type: DataTypes.INTEGER
        },
        pwd: {
            type: DataTypes.STRING,
            comment: '通过 bcrypt 加密后的密码',
        },
        phone: {
            type: DataTypes.STRING
        }
    }, {
            freezeTableName: true
        });
}